//
//  UILabel+XHLKit.h
//  XHLKit
//
//  Created by qinyulun on 16/6/18.
//  Copyright © 2016年 leTian. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (XHLKit)

+ (UILabel *)labelWithRect:(CGRect)rect
                      text:(NSString *)text
                 textColor:(UIColor *)textColor
                  fontSize:(CGFloat)fontSize
             textAlignment:(NSTextAlignment)textAlignment;

+ (CGSize)sizeWithText:(NSString *)text
                  font:(UIFont *)font
               maxSize:(CGSize)maxSize;

- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;

- (CGSize)boundingRectWithSize:(CGSize)size;
+ (CGFloat)getStingWidth:(NSString *)string font:(UIFont*)font labelHeight:(CGFloat)labelHeight;

@end
